package com.wenlin.myproduction.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author 文琳_377979485@qq.com
 * @time 2021/10/11 0011 下午 3:06
 * @desc 班次实体类
 */
public class RosterBean implements Parcelable {

    private String id;
    private String h_id;
    private String d_id;
    private String name;
    private int type;
    private int start_type;
    private String start_time;
    private int end_type;
    private String end_time;
    private String duration;
    private String director;
    private String ctime;
    private String au_id;
    private String is_del;
    private String depart_name;
    private String hospital_name;
    private String time;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getH_id() {
        return h_id;
    }

    public void setH_id(String h_id) {
        this.h_id = h_id;
    }

    public String getD_id() {
        return d_id;
    }

    public void setD_id(String d_id) {
        this.d_id = d_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getStart_type() {
        return start_type;
    }

    public void setStart_type(int start_type) {
        this.start_type = start_type;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public int getEnd_type() {
        return end_type;
    }

    public void setEnd_type(int end_type) {
        this.end_type = end_type;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getAu_id() {
        return au_id;
    }

    public void setAu_id(String au_id) {
        this.au_id = au_id;
    }

    public String getIs_del() {
        return is_del;
    }

    public void setIs_del(String is_del) {
        this.is_del = is_del;
    }

    public String getDepart_name() {
        return depart_name;
    }

    public void setDepart_name(String depart_name) {
        this.depart_name = depart_name;
    }

    public String getHospital_name() {
        return hospital_name;
    }

    public void setHospital_name(String hospital_name) {
        this.hospital_name = hospital_name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.h_id);
        dest.writeString(this.d_id);
        dest.writeString(this.name);
        dest.writeInt(this.type);
        dest.writeInt(this.start_type);
        dest.writeString(this.start_time);
        dest.writeInt(this.end_type);
        dest.writeString(this.end_time);
        dest.writeString(this.duration);
        dest.writeString(this.director);
        dest.writeString(this.ctime);
        dest.writeString(this.au_id);
        dest.writeString(this.is_del);
        dest.writeString(this.depart_name);
        dest.writeString(this.hospital_name);
        dest.writeString(this.time);
    }

    public void readFromParcel(Parcel source) {
        this.id = source.readString();
        this.h_id = source.readString();
        this.d_id = source.readString();
        this.name = source.readString();
        this.type = source.readInt();
        this.start_type = source.readInt();
        this.start_time = source.readString();
        this.end_type = source.readInt();
        this.end_time = source.readString();
        this.duration = source.readString();
        this.director = source.readString();
        this.ctime = source.readString();
        this.au_id = source.readString();
        this.is_del = source.readString();
        this.depart_name = source.readString();
        this.hospital_name = source.readString();
        this.time = source.readString();
    }

    public RosterBean() {
    }

    protected RosterBean(Parcel in) {
        this.id = in.readString();
        this.h_id = in.readString();
        this.d_id = in.readString();
        this.name = in.readString();
        this.type = in.readInt();
        this.start_type = in.readInt();
        this.start_time = in.readString();
        this.end_type = in.readInt();
        this.end_time = in.readString();
        this.duration = in.readString();
        this.director = in.readString();
        this.ctime = in.readString();
        this.au_id = in.readString();
        this.is_del = in.readString();
        this.depart_name = in.readString();
        this.hospital_name = in.readString();
        this.time = in.readString();
    }

    public static final Creator<RosterBean> CREATOR = new Creator<RosterBean>() {
        @Override
        public RosterBean createFromParcel(Parcel source) {
            return new RosterBean(source);
        }

        @Override
        public RosterBean[] newArray(int size) {
            return new RosterBean[size];
        }
    };
}
